* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f7fa;
}

#app {
  min-height: 100vh;
}

/* 响应式容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .el-table {
    font-size: 11px;
  }
  
  .el-table .el-table__cell {
    padding: 6px 4px !important;
  }
  
  .el-table__wrapper {
    overflow-x: auto;
  }

  .el-button {
    padding: 8px 15px;
    font-size: 12px;
  }
  
  .el-button--small {
    padding: 5px 8px !important;
    font-size: 10px !important;
  }

  .el-form-item__label {
    font-size: 12px;
  }
  
  .el-tag {
    font-size: 11px !important;
    padding: 0 6px !important;
  }
  
  /* 表格操作按钮组 */
  .el-table .el-button-group .el-button,
  .el-table .el-button--small {
    margin: 0 2px !important;
    padding: 4px 6px !important;
    font-size: 10px !important;
    min-width: auto !important;
  }
}

/* 表格响应式 */
@media (max-width: 1024px) {
  .el-table .el-table__cell {
    padding: 8px 0;
  }
}

/* 头部样式 */
.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px 0;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.header p {
  margin: 8px 0 0 0;
  opacity: 0.9;
  font-size: 14px;
}

@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .header h1 {
    font-size: 22px;
  }

  .header p {
    font-size: 12px;
  }
}

/* 内容卡片 */
.content-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin-bottom: 20px;
}

/* 操作按钮组 */
.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-section {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .action-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .action-bar .stats-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .action-bar .el-tag {
    text-align: center;
    justify-content: center;
  }

  .action-bar .el-button {
    width: 100%;
    margin: 0;
  }
}

/* 表格样式增强 */
.el-table {
  border-radius: 4px;
  overflow: hidden;
}

.el-table th {
  background-color: #f5f7fa;
  font-weight: 600;
  color: #333;
}

/* 金额高亮 */
.amount-cell {
  font-weight: 600;
  color: #f56c6c;
}

/* 表单样式 */
.order-form {
  max-width: 800px;
}

/* 加载状态 */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* 移动端弹窗优化 */
@media (max-width: 768px) {
  .el-dialog {
    width: 95% !important;
    margin: 0 !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .el-dialog__header {
    padding: 15px !important;
    flex-shrink: 0;
  }
  
  .el-dialog__body {
    padding: 10px 15px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 120px) !important;
  }
  
  .el-dialog__footer {
    padding: 15px !important;
    flex-shrink: 0;
    border-top: 1px solid #ebeef5;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 10;
  }
  
  .el-dialog__footer .el-button {
    min-height: 44px !important;
    font-size: 14px !important;
  }
  
  .el-form-item {
    margin-bottom: 15px !important;
  }
  
  .el-form-item__label {
    line-height: 1.2 !important;
    padding-bottom: 5px !important;
  }
  
  .el-input__inner,
  .el-textarea__inner,
  .el-input-number__input {
    min-height: 44px !important;
    font-size: 14px !important;
  }
  
  .el-date-editor .el-input__inner {
    min-height: 44px !important;
  }
  
  .el-input-number {
    width: 100% !important;
  }
  
  .el-input-number .el-input__inner {
    height: 44px !important;
    line-height: 44px !important;
  }
}

/* 移动端内容卡片优化 */
@media (max-width: 768px) {
  .content-card {
    padding: 15px !important;
    margin: 0 -5px 20px -5px !important;
    border-radius: 0 !important;
  }
  
  .container {
    padding: 5px !important;
  }
}
